home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / xview / genial / include / reg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-14  |  1.2 KB  |  46 lines

  1. /*
  2.  * reg.h -- include file for region selection
  3.  *
  4.  */
  5.  
  6. #include "plist.h"
  7.  
  8. /* IDs for the different types of regions */
  9. #define NOREG 0
  10. #define LINE 1
  11. #define SPLINE 2
  12. #define CLSPLINE 3
  13. #define POLYGON 4
  14. #define BOX 5
  15. #define DUBLIN 6        /* double line for angle measure. */
  16. #define ENTIRE_IMAGE 7
  17.  
  18. /* all the following regions types refer to annotation of the image */
  19. #define AN_TEXT 8        /* textual label */
  20. #define AN_VEC 9        /* vector (arrow-shaped thingy) */
  21. #define MAXREG 10
  22.  
  23. /* IDs for different type of region "groups" */
  24. #define LINEAR 1
  25. #define AREA 2
  26. #define ANOT 3
  27. #define TRACE 4
  28. #define NONE 10
  29.  
  30. /* structure of a region */
  31. struct region {
  32.     int       r_type;        /* type of region
  33.                  * (LINE,SPLINE,POLYGON,BOX,etc) */
  34.     int       r_flags;        /* special region modes (e.g. least-squares) */
  35.     /*
  36.      * plist is now a vector of linked lists to allow for compound regions
  37.      * while still preserving record boundaries
  38.      */
  39.     struct plist *r_plist;    /* points which the user supplied */
  40.     int       r_plen;        /* number of entries in above list */
  41.     struct dlist *r_dlist;    /* points which form the region */
  42.     struct strbs *r_sbs;    /* for region type AN_TEXT */
  43. };
  44.  
  45. extern struct region *interp_reg(), *newreg();
  46.